package com.wei.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//必须加上basePackages否则UserControllerRemoteClient不会生成代理实例对象
@EnableFeignClients(basePackages = "com.wei.remote")
@EnableEurekaClient
@EnableHystrix
@ComponentScan(basePackages = "com.wei.*.**")
public class SpringcloudConsumerApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringcloudConsumerApplication.class, args);
    }

}
